package com.xperblueray.stepbystep.service;

import com.xperblueray.stepbystep.model.SysDict;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Collection;
import java.util.List;
import java.util.concurrent.Future;

public interface SysDictService {
    SysDict findById(String id);
    List<SysDict> findAll();
    Future<List<SysDict>> findSyncAll();
    SysDict save(SysDict sysNotice);
    void delete(String id);

    // 分页
    Page<SysDict> findAll(Pageable pageable);

    List<SysDict> findByFilename(String filename);
    List<SysDict> findByValue(String value);
    List<SysDict> findByFilenameLike(String filename);
    List<SysDict> findByFileIdIn(Collection<String> ids);

    SysDict findByNameAndValue(String name, String value);

    SysDict findByNameAndType(String name, String type);
}
